package ooday03;

public abstract class Animals {
    String name;
    int age;
    String color;
    String food;
    Animals(String name,int age,String color,String food){
        this.name=name;
        this.age=age;
        this.color=color;
        this.food=food;
    }
    abstract void sayHi();
    void eat(){
        System.out.println(name+"正在吃"+food);
    }
}
